From: Owen W. Taylor Date: Mon, 19 May 2014 23:26:41 +0000 (-0400) Subject: perf: fix bug in code to print out metrics X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2368 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e375e1a8578da1e105fde9cc45ba3c630fb27240;p=gnome-shell.git perf: fix bug in code to print out metrics We don't normally hit the code in scripting.js to print metrics because shell-perf-tool bypasses it, but there was a left-over in the code that no longer works. Also add in the units to the output. https://bugzilla.gnome.org/show_bug.cgi?id=732349 --- diff --git a/js/ui/scripting.js b/js/ui/scripting.js index 72f670261..f952ed07b 100644 --- a/js/ui/scripting.js +++ b/js/ui/scripting.js @@ -306,8 +306,8 @@ function _collect(scriptModule, outputFile) { print ('------------------------------------------------------------'); for (let i = 0; i < metrics.length; i++) { let metric = metrics[i]; - print ('# ' + scriptModule.METRIC_DESCRIPTIONS[metric]); - print (metric + ': ' + scriptModule.METRICS[metric]); + print ('# ' + scriptModule.METRICS[metric].description); + print (metric + ': ' + scriptModule.METRICS[metric].value + scriptModule.METRICS[metric].units); } print ('------------------------------------------------------------'); }